<%@ Page Language="vb" AutoEventWireup="false" Codebehind="ProductCodeDialog.aspx.vb" Inherits="MIMS_WRS.Web.ProductCodeDialog" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>ProductCodeDialog</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<script language="javascript" src="../Js/EventCapture.js"></script>
		<LINK href="../style.css" type="text/css" rel="stylesheet">
		<script language="javascript">
		<!--
		function Reset() {
			document.all['txtCode'].value = "";
			document.all['txtBarcode'].value = "";
			document.all['txtDescription'].value = "";
			document.all['txtCode'].focus();
		}
		//-->
		</script>
	</HEAD>
	<body bottomMargin="0" leftMargin="0" topMargin="0" scroll="no" onload="document.all['txtCode'].focus();"
		rightMargin="0">
		<form id="Form1" method="post" runat="server">
			<table height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0">
				<tr>
					<td vAlign="top" align="center">
						<table class="border1" height="100%" cellSpacing="2" cellPadding="2" width="100%" border="0">
							<tr>
								<td vAlign="top" align="center" bgColor="#f9f9f9">
									<TABLE cellSpacing="0" cellPadding="3" width="100%" border="0">
										<TR class="bgmenu">
											<TD align="center" colSpan="3" height="30"><strong>
													<asp:label id="lblTitle" runat="server" CssClass="txtnormal">Create new Product Code</asp:label></strong></TD>
										</TR>
										<TR class="txtnormal">
											<TD class="txtcolor2" colSpan="3"><asp:label id="lblError" runat="server" CssClass="txthighlight"></asp:label></TD>
										</TR>
										<TR class="txtnormal">
											<TD style="HEIGHT: 25px" align="right" width="38%">Code:</TD>
											<TD style="HEIGHT: 25px" align="center" width="1%">&nbsp;</TD>
											<TD class="txtcolor2" style="HEIGHT: 25px" width="61%"><asp:textbox id="txtCode" runat="server" CssClass="txtsmall" MaxLength="10"></asp:textbox>&nbsp;
												<span class="txthighlight"><strong>*
														<asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" CssClass="txthighlight" ControlToValidate="txtCode"
															Display="Dynamic" ErrorMessage="required"></asp:requiredfieldvalidator><asp:regularexpressionvalidator id="RegularExpressionValidator1" runat="server" CssClass="txthighlight" ControlToValidate="txtCode"
															Display="Dynamic" ErrorMessage='must be 3-10 alphanumeric plus "/", "_", "-", "."' ValidationExpression="([_0-9a-zA-Z\/\-\.]){3,10}"></asp:regularexpressionvalidator></strong></span></TD>
										</TR>
										<TR class="txtnormal">
											<TD align="right">Part of barcode:</TD>
											<TD align="center">&nbsp;</TD>
											<TD class="txtcolor2"><asp:textbox id="txtBarcode" runat="server" CssClass="txtsmall" MaxLength="5" Width="64px"></asp:textbox>&nbsp;
												<span class="txthighlight"><strong>
														<asp:requiredfieldvalidator id="RequiredFieldValidator2" runat="server" CssClass="txthighlight" ControlToValidate="txtBarcode"
															Display="Dynamic" ErrorMessage="required" Enabled="False"></asp:requiredfieldvalidator><asp:regularexpressionvalidator id="RegularExpressionValidator2" runat="server" CssClass="txthighlight" ControlToValidate="txtBarcode"
															Display="Dynamic" ErrorMessage="must be 5 digits" ValidationExpression="\d{5}"></asp:regularexpressionvalidator></strong></span></TD>
										</TR>
										<TR class="txtnormal">
											<TD align="right">Description:</TD>
											<TD align="center">&nbsp;</TD>
											<TD noWrap><strong><asp:textbox id="txtDescription" runat="server" CssClass="txtsmall" MaxLength="255" Width="176px"></asp:textbox>&nbsp;<SPAN class="txthighlight"><STRONG>*</STRONG></SPAN>
													<asp:requiredfieldvalidator id="RequiredFieldValidator3" runat="server" CssClass="txthighlight" ControlToValidate="txtDescription"
														Display="Dynamic" ErrorMessage="required"></asp:requiredfieldvalidator></strong></TD>
										</TR>
									</TABLE>
									<TABLE cellSpacing="0" cellPadding="3" width="100%" border="0">
										<TR class="txtnormal">
											<TD class="txtsmall" vAlign="bottom" align="center" height="50"><asp:button id="btnSave" runat="server" CssClass="button" Text="Save"></asp:button>&nbsp;
												<input class="button" onclick="window.parent.close()" type="button" value="Cancel" name="Submit22">
											</TD>
										</TR>
										<TR class="txtnormal">
											<TD class="txtsmall" vAlign="bottom" align="center">&nbsp;</TD>
										</TR>
									</TABLE>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</form>
	</body>
</HTML>
